package org.example.course.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.course.domain.Check;

/**
 * @Classname CheckMapper
 * @Description TODO
 * @Date 2020/5/9 21:38
 * @Created by
 */
@Mapper
public interface CheckMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Check record);

    int insertSelective(Check record);

    Check selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Check record);

    int updateByPrimaryKey(Check record);

    int updateBatchSelective(List<Check> list);


    List<Check> findAllByCourseId(@Param("courseId") Integer courseId);
}